package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 材料照片表
 * </p>
 *
 * @author 新哥
 * @since 2024-04-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material_photo")
public class MaterialPhoto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id，非空、唯一，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * material（材料表）的id
     */
    @TableField("material_encode")
    private String materialEncode;

    /**
     * 图片地址
     */
    @TableField("photo_url")
    private String photoUrl;

    /**
     * 乐观锁
     */
    @Version
    @TableField("version")
    private Integer version;

    /**
     * 删除状态 0：未删除 1：删除
     */
    @TableLogic
    @TableField("deleted")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
